package com.leetcode.string;

/**
 * @author Dennis Li
 * @date 2020/7/31 22:48
 */
public class ReverseString_344 {

    public void reverseString(char[] s) {
        char temp;
        for (int i = 0, j = s.length - 1; i < j; i++, j--) {
            temp = s[j];
            s[j] = s[i];
            s[i] = temp;
        }
    }

}
